package com.codeanalysissys.backend.entity.response;

public enum ResponseCode {
    ANALYSIS_SUCCESS(0, "分析成功"),
    GET_SUCCESS(0, "获取成功"),
    UPLOAD_SUCCESS(0, "上传成功"),

    CLOSE_CONNECT_SUCCESS(0, "断连成功"),

    ANALYSIS_FAIL(1, "分析失败"),
    GET_FAIL(1, "获取失败"),
    UPLOAD_FAIL(1, "上传失败");

    private final int code;
    private final String msg;

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
